package dao

import (
	"time"
)

// 这是 LiWechatMpMessage 的全局公开dao对象
var LiWechatMpMessageDao = liWechatMpMessageDao{}

// 这是 li_wechat_mp_message表 的实体类
type LiWechatMpMessage struct {
	Id           int       `json:"id" form:"id" v:"id"`
	CreateBy     string    `json:"create_by" form:"create_by" v:"create_by"`
	CreateTime   time.Time `json:"create_time" form:"create_time" v:"create_time"`
	DeleteFlag   bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"`
	UpdateBy     string    `json:"update_by" form:"update_by" v:"update_by"`
	UpdateTime   time.Time `json:"update_time" form:"update_time" v:"update_time"`
	Code         string    `json:"code" form:"code" v:"code"`
	Enable       bool      `json:"enable" form:"enable" v:"enable"`
	Keywords     string    `json:"keywords" form:"keywords" v:"keywords"`
	KeywordsText string    `json:"keywords_text" form:"keywords_text" v:"keywords_text"`
	Name         string    `json:"name" form:"name" v:"name"`
	OrderStatus  string    `json:"order_status" form:"order_status" v:"order_status"`
	TemplateId   string    `json:"template_id" form:"template_id" v:"template_id"`
}

// 注意:这是 LiWechatMpMessage 的私有dao对象
type liWechatMpMessageDao struct {
	Insert func(arg LiWechatMpMessage) int               //插入一条记录
	Update func(arg LiWechatMpMessage) int               //更新一条记录
	Delete func(arg LiWechatMpMessage) int               //删除一条记录
	Select func(arg LiWechatMpMessage) LiWechatMpMessage //获取一条记录
}
